<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Nov 4, 2010 7:31:20 AM by Hibernate Tools 3.2.4.GA -->
<hibernate-mapping>
    <class name="acme.serviceproviders.data.Apartment" table="apartment">
        <id name="apartmentId" type="int">
            <column name="apartment_id" />
            <generator class="assigned" />
        </id>
        <property name="name" type="string">
            <column name="name" length="45" not-null="true" />
        </property>
        <property name="address" type="string">
            <column name="address" length="45" not-null="true" />
        </property>
        <property name="city" type="string">
            <column name="city" length="45" not-null="true" />
        </property>
        <property name="openFrom" type="timestamp">
            <column name="open_from" length="19" not-null="true" />
        </property>
        <property name="openTill" type="timestamp">
            <column name="open_till" length="19" not-null="true" />
        </property>
        <property name="dayCostPerPerson" type="float">
            <column name="day_cost_per_person" precision="12" scale="0" not-null="true" />
        </property>        
    </class>
</hibernate-mapping>
